package com.sysware.neo4jdemo.entity;

import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;

@NodeEntity(label = "MOVIES")
public class Movie {
	public Movie(String name) {
		this.name = name;
	}

	@GraphId
	private Long nodeId;
	
	@Property(name = "name")
	private String name;

	public Long getNodeId() {
		return nodeId;
	}

	public void setNodeId(Long nodeId) {
		this.nodeId = nodeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
